requireJS(['constant', 'site', 'handlebars', 'public'], function (Constant, site, Handlebars, Public) {
    Constant.initHandlebars(Handlebars);
    //日期控件初始化
    $(".datepicker").datepicker({
        format: 'yyyy-mm-dd',
        autoclose: true,
        pickerPosition: 'bottom',
    })
    Public.initProductSearch();
    var init = function () {
        // site.send({
        //     url: '',//毁约款列表
        //     //async:false
        //     callback: function (data) {
        //         var list = JSON.parse(data);
        var data = {
            "content": {
                "endRow": 10,
                "firstPage": 1,
                "hasNextPage": true,
                "hasPreviousPage": false,
                "isFirstPage": true,
                "isLastPage": false,
                "lastPage": 2,
                "list": [{
                    "add_time_stmp": 1501767653398,
                    "transtime": "2018-03-27 17:21:36",
                    "deposit": 7500,
                    "status": 1,
                    "transtime_stmp": 1522142496620,
                    "union_name": "黄玲娟",
                    "handle_money": 7500,
                    "pid": 23,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD2017080321405259123",
                    "id": 23,
                    "oid": 23,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-08-03 21:40:53",
                    "residual_amount": 0
                }, {
                    "add_time_stmp": 1501767653398,
                    "transtime": "2018-03-27 17:21:36",
                    "deposit": 7500,
                    "status": 1,
                    "transtime_stmp": 1522142496620,
                    "union_name": "黄玲娟",
                    "handle_money": 7500,
                    "pid": 23,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD2017080321405259123",
                    "id": 23,
                    "oid": 23,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-08-03 21:40:53",
                    "residual_amount": 0
                }, {
                    "add_time_stmp": 1509521466088,
                    "transtime": "2018-03-21 10:48:24",
                    "deposit": 24000,
                    "status": 1,
                    "transtime_stmp": 1521600504967,
                    "union_name": "易丽琴,徐勇",
                    "handle_money": 24000,
                    "pid": 145,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20171018114733682",
                    "id": 152,
                    "oid": 208,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-11-01 15:31:06",
                    "residual_amount": 0
                }, {
                    "add_time_stmp": 1510626783319,
                    "transtime": "2018-03-19 11:57:42",
                    "deposit": 10000,
                    "status": 1,
                    "transtime_stmp": 1521431862518,
                    "union_name": "侯江锋",
                    "handle_money": 10000,
                    "pid": 152,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20171113094816660",
                    "id": 159,
                    "oid": 272,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-11-14 10:33:03",
                    "residual_amount": 0
                }, {
                    "add_time_stmp": 1502352321492,
                    "transtime": "2018-03-09 16:51:26",
                    "deposit": 15000,
                    "status": 1,
                    "transtime_stmp": 1520585486789,
                    "union_name": "李乐",
                    "handle_money": 10000,
                    "pid": 62,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20170808143513862",
                    "id": 67,
                    "oid": 69,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-08-10 16:05:21",
                    "residual_amount": 5000
                }, {
                    "add_time_stmp": 1502352321492,
                    "transtime": "2018-03-09 16:51:26",
                    "deposit": 15000,
                    "status": 1,
                    "transtime_stmp": 1520585486789,
                    "union_name": "李乐",
                    "handle_money": 10000,
                    "pid": 62,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20170808143513862",
                    "id": 67,
                    "oid": 69,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-08-10 16:05:21",
                    "residual_amount": 5000
                }, {
                    "add_time_stmp": 1519715876243,
                    "transtime": "2018-03-01 15:19:45",
                    "deposit": 5000,
                    "status": 1,
                    "transtime_stmp": 1519888785054,
                    "union_name": "黄玲娟",
                    "handle_money": 5000,
                    "pid": 189,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20170823090646229",
                    "id": 192,
                    "oid": 91,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2018-02-27 15:17:56",
                    "residual_amount": 0
                }, {
                    "add_time_stmp": 1510123587221,
                    "transtime": "2018-03-01 14:35:47",
                    "deposit": 10000,
                    "status": 1,
                    "transtime_stmp": 1519886147825,
                    "union_name": "赵燕",
                    "handle_money": 0,
                    "pid": 149,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20171101161912931",
                    "id": 156,
                    "oid": 256,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-11-08 14:46:27",
                    "residual_amount": 10000
                }, {
                    "add_time_stmp": 1510566091545,
                    "transtime": "2018-01-09 15:14:29",
                    "deposit": 17500,
                    "status": 1,
                    "transtime_stmp": 1515482069776,
                    "union_name": "丁鹏",
                    "handle_money": 17500,
                    "pid": 151,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20171106133525458",
                    "id": 158,
                    "oid": 259,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-11-13 17:41:31",
                    "residual_amount": 0
                }, {
                    "add_time_stmp": 1507776366487,
                    "transtime": "2017-12-01 11:14:55",
                    "deposit": 24000,
                    "status": 1,
                    "transtime_stmp": 1512098095941,
                    "union_name": "郭艳芳",
                    "handle_money": 24000,
                    "pid": 110,
                    "frequency": 0,
                    "admin_name": "王银萍",
                    "type": 1,
                    "loan_number": "FD20170918204227429",
                    "id": 116,
                    "oid": 148,
                    "deduction": 1,
                    "Depositforbreach": 1,
                    "add_time": "2017-10-12 10:46:06",
                    "residual_amount": 0
                }],
                "navigatePages": 5,
                "navigatepageNums": [1, 2],
                "nextPage": 2,
                "orderBy": "",
                "pageNum": 1,
                "pageSize": 10,
                "pages": 2,
                "prePage": 0,
                "size": 10,
                "startRow": 1,
                "total": 11
            }, "type": 1, "msg": "查询成功"
        }
        var source = $("#deposit_breach_content_tpl").html();
        var template = Handlebars.compile(source);
        var html = template(data);
        $("#deposit_breach_content").html(html);

        Public.record('t_order')
        //     }
        // })


    }
    init();
})